<template>
  <div class="comment-actions">
    <el-button type="text" icon="el-icon-delete" @click="deleteComment">删除</el-button>
    <el-button type="text" icon="el-icon-edit" @click="editComment">修改</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: this.$store.getters.name,
      text: this.newComment,
      id: Date.now()
    }
  },
  methods: {
    deleteComment() {
      this.$emit('delete', this.comment.id);
    },
    editComment() {
      this.$emit('edit', this.comment);
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
